package com.zhiyou100.service;

import java.util.ArrayList;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zhiyou100.dao.ProgressDao;
import com.zhiyou100.model.Progress;

@Service
public class ProgressServiceImpl implements ProgressService{

	@Autowired
	private ProgressDao progressDao;
	
	@Override
	public ArrayList<Progress> list(int project_id) {

		ArrayList<Progress> find = progressDao.findAll(project_id);
		
		return find;
	}

	@Override
	public Progress content(int id) {

		return progressDao.findById(id);
	}

	@Override
	public void update(Progress progress) {

		progressDao.add(progress);
		
	}

}
